package com.iris.live.services.data.models;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by ytl on 2017/06/13.
 */
@Entity
@Table(name = "lsh报价单流水", schema = "live", catalog = "")
public class QuotationFlowingwaterModel {
    private Integer id;
    private String dlr;
    private Date date;

    @Basic
    @Column(name = "id")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Id
    @Column(name = "dlr")
    public String getDlr() {
        return dlr;
    }

    public void setDlr(String dlr) {
        this.dlr = dlr;
    }

    @Basic
    @Column(name = "date")
    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public QuotationFlowingwaterModel() {
    }

    public QuotationFlowingwaterModel(Integer id, String dlr, Date date) {
        this.id = id;
        this.dlr = dlr;
        this.date = date;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        QuotationFlowingwaterModel that = (QuotationFlowingwaterModel) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (dlr != null ? !dlr.equals(that.dlr) : that.dlr != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (dlr != null ? dlr.hashCode() : 0);
        return result;
    }
}
